package com.sanhuo.idms.service;

import com.sanhuo.idms.dao.DeviceStateMapper;
import com.sanhuo.idms.entity.DeviceState;
import com.sanhuo.triild.Basic.BaseMapper;
import com.sanhuo.triild.Basic.BaseService;
import com.sanhuo.triild.annotation.MapperWire;
import org.springframework.stereotype.Service;

@Service
public class DeviceStateService extends BaseService<DeviceState> {
    @MapperWire
    private DeviceStateMapper deviceStateMapper;

    @Override
    public BaseMapper<DeviceState> getBaseMapper() {
        return deviceStateMapper;
    }

    public DeviceState findByDorm(String dormId) {
        return deviceStateMapper.findByDormId(dormId);
    }

}
